.d-banner{
    width: 100%;
    height: 440px;
    background: #28282d;
    background: url(/static/themes/default/static/imgs/bg.jpg) center/cover no-repeat;
}
.d-hero-box{
    color: var(--hero-color);
    width: 60%;
    margin: auto;
    text-align: center;
    padding-top: 175px;
}
.d-hero-title{
    font-size: 30px;
    font-weight: 600;
}
.d-hero-desc{
    font-size: 15px;
    padding-top: 15px;
}
.d-hero-desc span{
    margin-right: 5px;
}
.d-container{
    width: 50%;
}
.d-article-container{
    width: 100%;
}
.d-article-title{
    margin-top: 20px;
    font-size: 1.7rem;
    font-weight: 500;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color-b);
    width: 100%;
    display: block;
    opacity: .98;
}
.d-article-info{
    margin-top: 10px;
}
.d-article-info span{
    font-size: 13px;
    color: var(--font-color);
    opacity: .9;
}
.d-article-info span .fa{
    margin-right: 3px;
}
.d-article-info span:not(:first-child){
    margin-left: 10px;
}
.d-article-content{
    margin-top: 25px;
    font-size: 15px;
    color: var(--font-color);
    line-height: 1.7;
    word-break: break-all;
}
.d-article-content a{
    color: var(--primary-color);
    font-weight: 600;
}
.d-article-content a:hover{
    text-decoration: underline;
}
.d-article-content blockquote{
    margin: 0.8em 0;
    border-left: 5px solid var(--primary-color);
    padding: 15px 15px;
    color: var(--font-color);
    background-color: var(--border-color-b);
}
.d-article-content img{
    max-width: 100%;
    margin-top: 8px;
    margin-bottom: 8px;
    border-radius: 5px;
    display: block;
    cursor: pointer;
}
.d-article-content h1,.d-article-content h2,.d-article-content h3,.d-article-content h4,.d-article-content h5,.d-article-content h6{
    font-weight: 500;
    border-bottom: 1px solid var(--border-color-b);
    margin-bottom: 15px;
    margin-top: 15px;
    opacity: .98;
    position: relative;
}
.d-article-content h1:hover:before,
.d-article-content h2:hover:before,
.d-article-content h3:hover:before,
.d-article-content h4:hover:before,
.d-article-content h5:hover:before,
.d-article-content h6:hover:before{
    content: "#";
    color: var(--primary-color);
    position: absolute;
    left: -20px;
}
.d-article-content h1{
    font-size: 1.7rem;
}
.d-article-content h2{
    font-size: 1.45rem;
}
.d-article-content h3{
    font-size: 1.25rem;
}
.d-article-content h4{
    font-size: 1.15rem;
}
.d-article-content h5{
    font-size: 1.1rem;
}
.d-article-content h6{
    font-size: 1.05rem;
}
.d-article-content ul,.d-article-content ol{
    padding-left: 25px;
}
.d-article-content ul li{
    list-style: disc;
}
.d-article-content ol li{
    list-style: decimal;
}
.d-article-content code{
    font-family: Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;
    border: 0;
    font-size: 13px;
    padding: 10px 15px;
    font-weight: 200;
    white-space: pre;
    border-radius: 5px;
    margin: 10px 0;
}
.d-article-content table {
    margin: 0.8em 0;
    padding: 0;
    word-break: initial;
    width: 100%;
    border-radius: 5px;
}
.d-article-content table tr {
    border-top: 1px solid var(--border-color-b);
    margin: 0;
    padding: 0;
}

.d-article-content table tr:nth-child(2n),
.d-article-content thead {
    background-color: var(--background-b);
}
.d-article-content table tr th {
    font-weight: bold;
    border: 1px solid var(--border-color-b);
    border-bottom: 0;
    margin: 0;
    padding: 6px 13px;
}

.d-article-content table tr td {
    border: 1px solid var(--border-color-b);
    margin: 0;
    padding: 6px 13px;
}

.d-article-content table tr th:first-child,
.d-article-content table tr td:first-child {
    margin-top: 0;
}

.d-article-content table tr th:last-child,
.d-article-content table tr td:last-child {
    margin-bottom: 0;
}

.d-article-content video{
    border-radius: 5px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.d-article-content hr{
    margin-bottom: 20px;
    margin-top: 20px;
}
.d-toc{
    position: fixed;
    top: 10rem;
    bottom: 10rem;
    right: 2rem;
    overflow-y: scroll;
    display: none;
}
.d-toc.show{
    display: block;
}
.roundDiv{
    width: 200px;
}
.roundDiv li{
    border-left: 1px solid var(--border-color-b);
    padding-left: .9rem;
    cursor: pointer;
}
.roundDiv li a{
    font-size: 14px;
    font-weight: 400;
    display: block;
    color: var(--font-color);
    padding: 8px 4px;
    line-height: 1.4;
    box-sizing: border-box;
}
.roundDiv li:hover{
    border-left: 1px solid var(--primary-color);
}
.roundDiv li:hover a{
    color: var(--primary-color);
}
.roundDiv li.active-toc{
    border-left: 1px solid var(--primary-color);
}
.roundDiv li.active-toc a{
    color: var(--primary-color);
}
.d-toc::-webkit-scrollbar {
    width: 0;
    height: 0;
}
.d-article-bottom{
    margin-top: 20px;
    text-align: right;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color-b);
}
.d-article-bottom span{
    font-size: 14px;
    color: var(--font-color-b);
}
.d-article-bottom span:first-child{
    color: var(--primary-color);
    font-weight: 600;
    margin-right: 8px;
}
.d-switch-article-box{
    margin-top: 20px;
}
.d-pre-article,.d-next-article{
    color: var(--primary-color);
}
.d-pre-article:hover,.d-next-article:hover{
    color: var(--primary-color);
    text-decoration: underline;
}
.d-pre-article .fa,.d-next-article .fa{
    color: var(--font-color-b);
    font-weight: 100;
    font-size: 12px;
}
.d-next-article{
    float: right;
}
.d-comments{
    margin-top: 40px;
}
.greatBox{
    width: 100%;
    margin-top: 30px;
    text-align: center;
}
.like-btn{
    display: inline-block;
    padding: 7px 20px;
    border-radius: 20px;
    cursor: pointer;
    border: 1px solid var(--border-color-b);
    background: var(--primary-color);
    color: white;
}
.comment-box .comment-editor, .comment-box .comment-name-input,
.comment-box .comment-email-input,.comment-box .comment-website-input,
.comment-box .comment-submit-box .comment-cancel-btn{
    background-color: var(--comment-background);
    border: 1px solid var(--comment-border-color);
    color: var(--font-color);
}
.comment-box .comment-submit-box .comment-submit-btn{
    background: var(--primary-color);
}
.comment-box .comment-emjoi-btn{
    color: var(--font-color-b);
}
.comment-detail-content{
    background-color: var(--background-b);
    color: var(--font-color);
}
.comment-pagination{
    margin-top: 15px;
}
.comment-pagination .page{
    background: var(--background);
    border: 1px solid var(--border-color-b);
    color: var(--font-color);
}
.comment-pagination .page:hover{
    background: var(--primary-color);
    color: var(--hero-color)
}
.comment-pagination .active{
    background: var(--primary-color);
    color: var(--hero-color)
}
.comment-pagination .disabled, .comment-pagination .disabled:hover{
    cursor: not-allowed;
    background: var(--background);
    color: var(--font-color);
}
.comment-detail-reply-btn{
    background: var(--primary-color);
}
.comment-detail-name{
    color: var(--primary-color);
}
@media screen and (max-width:1360px) {
    .d-container{
        width: 850px;
    }
    .d-toc, .d-toc.show{
        right: 0;
    }
}
@media screen and (max-width: 1290px) {
    .d-container{
        width: 750px;
    }
}
@media screen and (max-width: 1200px) {
    .d-toc,.d-toc.show{
        display: none;
    }
}
@media screen and (max-width: 840px) {
    .d-container{
        width: calc(100% - 40px);
    }
}
@media screen and (max-width:750px) {
    .d-banner{
        height: 330px;
    }
    .d-hero-box{
        width: calc(100% - 40px);
        padding-top: 110px;
    }
}